
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildCollegeCfg : public ManualSingleton <GuildCollegeCfg>
{
	friend ManualSingleton <GuildCollegeCfg>;
public:
	GuildCollegeCfg();
	~GuildCollegeCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildCollegeCfgInfo *GetGuildCollegeCfgInfo(int32_t practiceId);
	const GuildCollegeCfgMap *GetGuildCollegeCfgMap() { return &m_GuildCollegeCfgMap; }
private:
	GuildCollegeCfgMap m_GuildCollegeCfgMap;
};

#define  g_MakeGuildCollegeCfgTable() (GuildCollegeCfg::Instance())
#define  g_GetGuildCollegeCfgTable() (GuildCollegeCfg::GetInstance())
#define  g_DelGuildCollegeCfgTable() (GuildCollegeCfg::Destroy())